<!DOCTYPE html>
<html>

<meta http-equiv="content-type" content="text/html;charset=UTF-8" />

<head>
    <meta charset="utf-8">
    <title>layuiAdmin 后台管理员</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
    <link rel="stylesheet" href="../../../layuiadmin/style/public.css">

</head>

<body>
    <div class="layui-card layui-wh100">
        <div class="layui-card-body">
            <div class="layui-form" lay-filter="example">
                <input value="http://localhost:8085/api/Img/default.jpg" type="hidden" name="H3" id="tx">
                <div class="layui-form-item">
                    <div class="layui-upload">
                        <div style="margin-left:110px" class="layui-upload-list">
                            <img  src="./default.jpg" class="layui-upload-img" id="demo1">
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">头像</label>
                            <div class="layui-input-inline">
                                <button style="background-color:black" type="button" class="layui-btn" id="test1">立即上传
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">用户名</label>
                    <div class="layui-input-inline">
                        <input type="text" name="H1" lay-verify="required" placeholder="请输入用户名" autocomplete="off"
                            class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">登陆密码</label>
                    <div class="layui-input-inline">
                        <input type="password" name="H2" lay-verify="password" placeholder="请输入密码" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">手机号码</label>
                    <div class="layui-input-inline">
                        <input type="text" name="H5" lay-verify="phone" placeholder="请输入手机号码" autocomplete="off"
                            class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">邮箱</label>
                    <div class="layui-input-inline">
                        <input type="text" name="H6" lay-verify="email"  placeholder="请输入邮箱" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div id="roles" class="layui-form-item">
                        <label class="layui-form-label">角色</label>
                      </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">备注信息</label>
                    <div class="layui-input-block">
                        <textarea name="H7" placeholder="请输入备注信息" class="layui-textarea"></textarea>
                    </div>
                </div>
                <div style="margin-left:110px" class="layui-form-item">
                    <button style="background-color:black" class="layui-btn" id="savaChange" lay-submit="" lay-filter="savaChange">立即提交</button>
                </div>
            </div>
        </div>
    </div>

    <script src="../../../layuiadmin/layui/layui.js"></script>
    <script>
        layui.config({
            base: '../../../../layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index', //主入口模块
            _user: 'lib/_user'
        }).use(['_user', 'utilJs', 'form'], function (option) {
            var _user = layui._user,
                $ = layui.$,
                form = layui.form,
                utilJs = layui.utilJs;
            
            _user.get_roles(()=>{
                _user.edit_init()
            })
        })
    </script>
</body>

</html>
<style>
    #demo1 {
        width: 200px;
    }
</style>